package com.itheima.service;

import com.itheima.common.entity.PageResult;
import com.itheima.pojo.CheckGroup;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CheckGroupService {
    boolean addCheckGroup(CheckGroup checkGroup);

    boolean delete(Integer id);

    boolean updateCheckGroup(CheckGroup checkGroup);

    PageResult findPageByCode(Pageable pageable, String queryString);

    PageResult findPageByName(Pageable pageable, String queryString);

    PageResult findPageDefault(Pageable pageable);

    CheckGroup findById(Integer id);


    List<String> findAll();
}